<div class="top-wraper" id="top-wraper-menu">
    <ul class="menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
        {foreach from=$menu item=tabs key=tabsKey}
            <div style="clear:both"></div>
            {foreach from=$tabs item=tab}
                <li class="menu ui-state-default ui-corner-top{if $tab.marked == 1}ui-tabs-selected ui-state-active{/if} level-{$tab.level}" id="li-{$tabKey}"><a href="index.php?type=menu&action=tabOpen&tab={$tab.id}"><span>{$tab.name}</span></a></li>
            {/foreach}
        {/foreach}
    </ul>
</div>
<div class="top-wraper ui-widget-header ui-corner-all" id="top-wraper-buttons">
    {foreach from=$config.AvalibleLanguages item=language}
        <a class="gfxButton ui-corner-all" href="index.php?type=menu&action=setLanguage&lang={$language}"><img src="layout/flags/{$language}.jpg" alt="{$language}" /></a>
    {/foreach}
    <a class="gfxButton ui-corner-all" id="signOut" href="index.php?type=user&action=logOut" title={$smarty.const.StringMenuTitleSignOut}><img src="layout/exit.png" /></a>
</div>